/**
 * 
 */
package edu.umuc.cmsc495_final_project;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;


/**
 * @author paul.lipp
 *
 */
public class OrderForm extends JPanel {
	
	JPanel beer;
	JPanel wine;
	JPanel alcohol;
	JPanel food;
	JPanel dessert;
	JPanel misc;
	
	public OrderForm(){
		setLayout(new BorderLayout(0, 0));
		
		beerPane();
		winePane();
		alcoholPane();
		foodPane();
		dessertPane();
		miscPane();
		
		JTabbedPane tabOrderPane = new JTabbedPane(JTabbedPane.TOP);
		add(tabOrderPane, BorderLayout.CENTER);
		tabOrderPane.addTab( "Beer", beer );	 // pane 0
		tabOrderPane.addTab( "Wine", wine ); // pane 1
		tabOrderPane.addTab( "Alcohol", alcohol ); // pane 2
		tabOrderPane.addTab( "Food", food ); // pane 3
		tabOrderPane.addTab( "Desser", dessert ); // pane 3
		tabOrderPane.addTab( "Misc", misc); // pane 4		
	}

	private void beerPane() {
		beer = new JPanel();
		beer.setLayout( new FlowLayout() );
	}
	private void winePane() {
		wine = new JPanel();
		wine.setLayout( null );
	}
	private void alcoholPane() {
		alcohol = new JPanel();
		alcohol.setLayout( null );
	}
	private void foodPane() {
		food = new JPanel();
		food.setLayout( null );
	}
	private void dessertPane() {
		dessert = new JPanel();
		dessert.setLayout( null );
	}
	private void miscPane() {
		misc = new JPanel();
		misc.setLayout( null );
	}
}
